﻿           
            <asp:TemplateField>
                <ItemTemplate>       
            <asp:ListView ID="SOURCE_5" 
            runat="server" 
            DataSourceID="SqlDs_SOURCE_5">
            <ItemTemplate>
            <tr style="">
                <td>
                    <asp:Label ID="value_sourceLabel" runat="server"  
                        Text='<%# Eval("DESCR_ROW") %>' />
                </td>
            </tr>
            </ItemTemplate>
            <LayoutTemplate>
            <table id="Table2" runat="server" >
                <tr id="Tr1" runat="server">
                    <td id="Td1" runat="server"  >
                        <table ID="itemPlaceholderContainer"   runat="server" border="0" >
                            <tr id="Tr2" runat="server" style="">
                            </tr>
                            <tr ID="itemPlaceholder" runat="server" >
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="Tr3" runat="server">
                    <td id="Td2" runat="server" style="">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
     <!--5 INIZIO DATASOURCE DESCRIZIONE SOURCE IN GRIGLIA-->
    <asp:SqlDataSource ID="SqlDS_SOURCE_5" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BBI_MAPPINGConnectionString %>" 
        SelectCommand='<%# get_SqlDS_SOURCE(5) %>' 
>
<SelectParameters>
    <asp:ControlParameter Name="id_mapping" 
      ControlID="id_mappingLabel"
      PropertyName="Text"/>
  </SelectParameters>
  

</asp:SqlDataSource>
    <!--5 FINE DATASOURCE DESCRIZIONE SOURCE IN GRIGLIA-->
<!--5 FINE SOURCE 5-->

            </ItemTemplate>

            <EditItemTemplate>
            <asp:ListView ID="SOURCE_5" 
            runat="server" 
            DataSourceID="SqlDs_SOURCE_5">
            <EmptyDataTemplate>
            <table id="Table1" runat="server" style="">
                <tr><td>
                <asp:Button 
                ID="btn_aggiung_5" 
                Text="Add" 
                runat="server"  
                CommandName="AddColRow" 
                CommandArgument="5" 
                Width="50px"
                CssClass="btnricerca" 
                onMouseOver="goLite(this.form.name,this.name)"
                onMouseOut="goDim(this.form.name,this.name)"
                />
                </td></tr>
            </table>
            </EmptyDataTemplate>

            
            <LayoutTemplate>
            <table id="Table2" runat="server">
                
                <tr><td>
                <asp:Button ID="btn_aggiung_5" Text="Add" runat="server"  CommandName="AddColRow" CommandArgument="5" 
                Width="50px"
                CssClass="btnricerca" 
                onMouseOver="goLite(this.form.name,this.name)"
                onMouseOut="goDim(this.form.name,this.name)"
                />
                </td></tr>
                
                <tr id="Tr1" runat="server">
                    <td id="Td1" runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
                            <tr id="Tr2" runat="server" style="">
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </LayoutTemplate>

            <ItemTemplate>
                <tr style="" >
                    <td><asp:ImageButton  CommandName="DelRowCol_5" CommandArgument='<%# Eval("VALUE_SOURCE") %>' ImageUrl="~/App_Themes/CancellaRowColMap.gif" runat="server" ID="btnEliminaRowMap_5" /></td>
                    <td><asp:Label ID="value_sourceLabel" runat="server" Text='<%# Eval("DESCR_ROW") %>'   cssClass='<%# getCssClassSource(Eval("stato")) %>'  /></td>
                    <td><asp:Image  ToolTip='<%# Eval("DescrCheck") %>' Visible='<%# GetVisibleCheck(Eval("CheckStato")) %>' ImageUrl="~/App_Themes/CheckStatoDuplicato.jpg" runat="server" ID="ImageButton2" /></td>
                </tr>
            </ItemTemplate>
 

    </asp:ListView>
     <!--5 INIZIO DATASOURCE DESCRIZIONE SOURCE IN GRIGLIA-->
    <asp:SqlDataSource ID="SqlDS_SOURCE_5" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BBI_MAPPINGConnectionString %>" SelectCommand="SELECT DESCR_ROW , VALUE_SOURCE
FROM [BBI_MAPPING].[BwAppMap].[v_ElencoRowSourceMap_5]
where id_mapping = @id_mapping ">
<SelectParameters>
    <asp:ControlParameter Name="id_mapping" 
      ControlID="id_mappingLabel"
      PropertyName="Text"/>
  </SelectParameters>
  

</asp:SqlDataSource>
    <!--5 FINE DATASOURCE DESCRIZIONE SOURCE IN GRIGLIA-->
<!--5 FINE SOURCE 5-->

            </EditItemTemplate>


            </asp:TemplateField>

